﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KSOAdmin.Models.MapperModels.Page
{
    /// <summary>
    /// 返回数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageListModel<T>
    {
        /// <summary>
        /// 列信息
        /// </summary>
        public List<TableViewColumnHead> columns { get; set; } = new List<TableViewColumnHead>();
        /// <summary>
        /// 返回的数据
        /// </summary>
        public List<T> listPage { get; set; }
        /// 总数
        /// </summary>
        public int total { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int pageCount { get; set; }

        /// <summary>
        /// 一页显示多少条
        /// </summary>
        public int pageSize { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int pageIndex { get; set; }
    }
}
